<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/29/029
 * Time: 16:19
 */

namespace App\HttpController;
use EasySwoole\Component\Pool\PoolManager;
use EasySwoole\Http\AbstractInterface\Controller;

class Base extends Controller
{
    public function index()
    {
        // TODO: Implement index() method.
    }

//    public function onException(\Throwable $throwable): void
//    {
//        $this->writeJson(400,'请求不合法');
//    }

    public function onRequest($action): ?bool
    {
        return true;
//        $this->writeJson(403,[],'您没有权限访问此页面');
//        return false;
    }
}